<?php
function openDB($path) {
  return sqlite_open($path);
}
function getConfig($db) {
  return sqlite_fetch_array(sqlite_query($db,"SELECT * FROM config"));
}
function getPage($db,$pageid) {
  return sqlite_fetch_array(sqlite_query($db,"SELECT * FROM pages WHERE id = ".$pageid));
}
?>